<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include  file="/jsps/front/common/taglibs.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	
	<script type="text/javascript" src="<c:url value="/js/dtree.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/prototype.js"/>"></script>
	<link rel="StyleSheet" href="<c:url value="/jsps/front/css/dtree.css"/>" type="text/css" /> 
	
	<script type="text/javascript">
	  function getCtgz(){
	   
	    	location.href="<c:url value="/ctgMgr?act=loadall"/>";
	  }
	</script>

	<style>
	    #ctgTree{
	      width:200px;
	      border-right:2px solid blue;
	      padding:8px;
	      float:left;      
	    }  
	</style>
	
  </head>
  
  <body style="width: 962px;">
  <div class="allcate">全部商品分类</div>
	<div class="dtree" id="ctgTree" style="align:center;">
		<p><a href="javascript: d.openAll();">展开折叠</a> | <a href="javascript: d.closeAll();">收缩折叠</a></p>
	
		<script type="text/javascript">
				
			d = new dTree('d');	
	        <c:forEach var="ctg" items="${ctgs}">
	           d.add(${ctg.categoryNo},<c:if test="${ctg.categoryNo==0}">-1</c:if><c:if test="${ctg.categoryNo!=0}">${ctg.categoryParentNo}</c:if> 
	                   ,'${ctg.categoryName}','${ctg.categoryURL}','小提示','contentFrame');
	        </c:forEach>				
			document.write(d);		
		</script>
	</div>
	<div id="content" style="float:left;margin-left:0px;margin-top:0px;">
	   <iframe height="600px;" width="100%" frameborder="0" scrolling="auto" name="contentFrame" src="<c:url value="/goodMgr?act=loadAll"/>"></iframe>
	</div>
  </body>
</html>
